﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="hotelDetail.aspx.vb" Inherits="travel.hotelDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1 {font-size: large;}
        .emptypng {background-image:url(“imgs/empty.png”); width:32px; height:32px;}
        .smileypng {background-image:url(“imgs/smiley.png”); width:32px; height:32px;}
        .donesmileypng {background-image:url(“imgs/smiley-done.png”); width:32px; height:32px;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </ajaxToolkit:ToolkitScriptManager>
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="HotelName" HeaderText="HotelName" 
                    SortExpression="HotelName" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:ImageField DataImageUrlField="Pictures" HeaderText="Pictures">
                    <ControlStyle CssClass="hotelImage" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:travelConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:travelConnectionString.ProviderName %>" 
            SelectCommand="SELECT [HotelName], [Description], [Pictures] FROM [hotels] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="312px">
        <Columns>
            <asp:BoundField DataField="Author" HeaderText="Author" 
                SortExpression="Author" />
            <asp:BoundField DataField="Comment" HeaderText="Comment" 
                SortExpression="Comment" />
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:travelConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:travelConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Author], [Comment], [Title] FROM [Comments] WHERE ([Hotel_fkId] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Hotel_fkId" QueryStringField="ID" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2" style="padding-right:10px"><strong>Add Your Comment Here</strong></td>
        </tr>
        <tr>
            <td style="padding-right:10px">&nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="padding-right:10px">Comment Title</td>
            <td>
                <asp:TextBox ID="tb_Title" runat="server" Width="256px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="padding-right:10px">Your Comment</td>
            <td>
                <asp:TextBox ID="tb_Comment" runat="server" Height="113px" Width="256px" 
                    TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>              
        <tr>
            <td></td>
            <td>
                <asp:Button ID="btn_AddComment" runat="server" Text="Add Your Comment" />
            </td>
        </tr>                   
    </table>
    <p><br /></p>
    <p>
    <asp:CheckBoxList ID="CheckBoxList1" runat="server" 
        DataSourceID="tagDataSource" DataTextField="Tag" DataValueField="ID" 
            RepeatDirection="Horizontal">
    </asp:CheckBoxList>

    Add New Tags Here Separate By Commas: <asp:TextBox ID="TextBox1" runat="server" Width="306px"></asp:TextBox><br />

    <asp:SqlDataSource ID="tagDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:travelConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:travelConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID], [Tag] FROM [Tags]"></asp:SqlDataSource>
</p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Tag This Hotel" />
</p>
    <p class="style1">
        <strong>Rate This Hotel</strong></p>
            <p>
        </p>
            <ajaxToolkit:Rating ID="Rating1" runat="server" EmptyStarCssClass="emptypng" FilledStarCssClass="smileypng" StarCssClass="smileypng" WaitingStarCssClass="donesmileypng">
    </ajaxToolkit:Rating>
            <p>
                &nbsp;</p>

 <p>
                &nbsp;</p>
 <p>
     <asp:Button ID="btn_Rating" runat="server" Text="Save Rating" /></p>
    <p>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </p>

 <p>
                &nbsp;</p>

</asp:Content>
